package com.woniuxy.intellihome.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @author ganrun 2021-8-11 加id,数据库名字
 * @since 2021-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_cart")
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("SKU_id")
    private Integer skuId;

    @TableField("user_id")
    private Integer userId;

    private Integer mount;

    private BigDecimal price;

    private String ischoose;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Sku sku;
}
